﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.SystemManager.MyModelDto;
using SystemCenterSoa.IRepository.SystemManager;
using SystemCenterSoa.PoModel.SystemManager.MyModelPo;

namespace SystemCenterSoa.Service.SystemManager
{
    public class AttendanceService
    {
        private IAttendanceRepository _IAttendanceRepository;
        public AttendanceService(IAttendanceRepository IAttendanceRepository)
        {
            _IAttendanceRepository = IAttendanceRepository;
        }
        /// <summary>
        /// 考勤月汇总—显示
        /// </summary>
        /// <returns></returns>
        public List<MonthSummaryPo> MonthSummaryPoIndex(string name)
        {
            return _IAttendanceRepository.MonthSummaryPoIndex(name);
        }

        /// <summary>
        /// 考勤月专业组分析
        /// </summary>
        /// <returns></returns>
        public List<ProfessionalPo> ProfessionalPoIndex()
        {
            return _IAttendanceRepository.ProfessionalPoIndex();
        }
        /// <summary>
        /// 部门加班补助显示
        /// </summary>
        /// <param name="nian"></param>
        /// <param name="yue"></param>
        /// <returns></returns>
        public List<ShowSubsidyDto> showSubsidy()
        {
            return _IAttendanceRepository.showSubsidy();
        }
        /// <summary>
        /// 部门经理加班补助显示
        /// </summary>
        /// <param name="nian"></param>
        /// <param name="yue"></param>
        /// <returns></returns>
        public List<ShowSubsidyDto> showJingliSubsidy()
        {
            return _IAttendanceRepository.showJingliSubsidy();
        }
    }
}
